package backserver;

/**
 * Created by Administrator on 2016/1/8.
 */
public class BackTask implements Runnable {
    public volatile int state=0;
    public void run() {
        BackUtil backUtil=BackManager.getBackUtil();
        System.out.println("我开始执行");
        while (this.state == 1) {
            backUtil.getMyCommon().Save();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("我结束执行");
    }
}
